package com.cby.springboot.demo.service;

import com.cby.springboot.demo.bean.Customer;
import com.cby.springboot.demo.mapper.CustomerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("customerService")
public class CustomerServiceImpl implements CustomerService{

    @Autowired
    CustomerMapper customerMapper;

    @Override
    public Customer getByCustomerId(Customer customer) {
        return customerMapper.getByCustomerId(customer);
    }
}
